package com.mfhcd.facepay.network.api;

import com.mfhcd.facepay.model.BaseRequestModel;
import com.mfhcd.facepay.model.BaseResponseModel;
import com.mfhcd.facepay.model.RequestModel;
import com.mfhcd.facepay.model.ResponseModel;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.POST;
import retrofit2.http.Url;

/**
 * Author：石强
 * E-Mail: shiqiang@mfhcd.com
 * Date：2019-09-06
 * 版权所有 © 现代金融控股（成都）有限公司
 */
public interface NetworkService {

    //测试
    @POST
    Observable<BaseResponseModel<ResponseModel.TestResp>> test(@Body BaseRequestModel req, @Url String url);

    @POST
    Observable<ResponseModel.TrxDataResp> faceRouter(@Body RequestModel.TrxDataReq requestModel, @Url String url);

    @POST
    Observable<ResponseModel.TransResp> doTransaction(@Body RequestModel.TransReq requestModel, @Url String url);

}
